<div id="content">
    <div class="left">

        <h1>Create New Schedule</h1>
        <hr/><br/>
        <h3>Set Up Your New Schedule Profile here:</h3>
        <br/>

        <?php
//Start of form
        echo form_open('schedule/do_create_schedule');

        echo '<fieldset>';
        echo '<legend>Schedule Profile:</legend>';
        echo br(1);

        echo form_label('Schedule Name: ', 'name', array('class' => 'left_col1'));
        echo form_input(array('name' => 'name', 'id' => 'name', 'class' => 'left_col2'));
        echo nbs(3);
        echo '<span id="name_msg"></span>';
        echo br(1);
        echo '<div id="clear"></div>';

        echo form_label('Destination Country:', 'country', array('class' => 'left_col1'));
        echo form_dropdown('country_id', $country, '1', 'id = "country" class = "left_col2"');  //$country is used as $option as it was pre-crafted in schedule model
        echo br(1);
        echo '<div id="clear"></div>';

        echo form_label('Sync with Google Calendar: ', 'sync', array('class' => 'left_col1'));
        $options = array('1' => 'Yes', '0' => 'No');
        echo form_dropdown('sync', $options, '0', 'id = "sync" class = "left_col2"');
        echo br(2);
        echo '<div id="clear"></div>';

        echo form_label('Remark about Schedule:', 'remark', array('class' => 'left_col1'));
        echo form_textarea(array('name' => 'remark', 'id' => 'remark', 'rows' => '5', 'cols' => '40', 'class' => 'left_col2'));
        echo br(1);
        echo '<div id="clear"></div>';

        echo '</fieldset>';

        echo br(3);

        echo form_submit(array('name' => 'submit', 'id' => 'schedule'), 'Save Schedule');

        echo form_close();
//End of form
        ?>

    </div>
</div>
